#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
void reverse_string(char* string,int sz)
{
	char tmp;
	int left = 0;
	int right = sz - 2;
	if (left < right)
	{
		tmp = string[left];
		string[left] = string[right];
		string[right] = tmp;
	}
	if (left < right)
		reverse_string(string + 1, sz - 2);
}
int main()
{
	int sz;
	char a[] = "abcdefghij";
	sz = sizeof(a) / sizeof(a[0]);
	reverse_string(a, sz);
	printf("%s", a);
}